use_dir(["arguments", "decks", "output"])

print("Start 'generator'.")
result = run("ins_card.generator", [
    get_package("ins_card.resources"),
    get_dir("arguments"),
    get_dir("output")
])
print("Finished 'generator'.")

print("Start 'distribution'.")
decks_data = [f + ";6|cm;8.6|cm" for f in get_dir_files("decks")]

print(*[
    get_dir("output"),
    get_dir("output"),
    str(len(decks_data)),
] + decks_data, sep="\n")

distribution = run("ins_card.distribution",[
    get_dir("output"),
    get_dir("output"),
    str(len(decks_data)),
] + decks_data)
print("Finished 'distribution'.")